<template>
	<view class="content">
		<swiper class="swiperBox">
			<swiper-item class="swiperItem" v-for="(item,index) in data.banner" :key="index">
				<image :src="item.url" class="swiperItem"></image>
			</swiper-item>
		</swiper>
		<view class="navigationBox">
			<view class="nameBox">
				<text>{{data.name}}</text>
				<text>￥{{data.price}}</text>
			</view>
		</view>
		<view class="introductionBox">
			<view class="introductionTitle">
				场地简介
			</view>
			<mp-html :content="data.details" />
		</view>
		<view class="order" @click="$navto.navto('/pages/juanjiahui_pet_submit/juanjiahui_pet_submit')">
			立即预约
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				baseUrl: this.$baseUrl,
				data:''
			}
		},
		// 查询空间详情
		onLoad() {
			this.$request.get('venue_list?type=3').then(res => {
				this.data = res.data.data[0];
			})
		},
		methods: {
		}
	}
</script>
<style lang="scss" scoped>
	.order{
		position: fixed;
		bottom: 30rpx;
		left: 40rpx;
		width: 670rpx;
		height: 90rpx;
		border-radius: 45rpx;
		background: #121212;
		font-weight: 700;
		font-size: 28rpx;
		color: #FFFFFF;
		letter-spacing: 5rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.introductionBox{
		width: 670rpx;
		padding: 50rpx 40rpx 200rpx 40rpx;
		margin-top: 25rpx;
		background-color: #ffffff;
		.introductionTitle{
			font-weight: 700;
			font-size: 26rpx;
			color: #121212;
			padding-bottom: 50rpx;
			border-bottom: 1rpx solid #121212;
			margin-bottom: 70rpx;
		}
	}
	.navigationBox{
		padding: 65rpx 40rpx 65rpx 40rpx;
		box-sizing: border-box;
		background-color: #ffffff;
		.nameBox{
			display: flex;
			font-weight: 700;
			font-size: 32rpx;
			color: #121212;
			justify-content: space-between;
		}
	}
	.swiperBox{
		width: 750rpx;
		height: 750rpx;
		.swiperItem{
			width: 100%;
			height: 100%;
		}
	}
	.content {
		width: 100%;
		height: 100%;
		background-color: #f0f0f0;
	}
</style>